# $Id: PKGBUILD 56405 2011-10-07 09:49:29Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-curses-ui
pkgver=0.9609
pkgrel=1
pkgdesc="Perl/CPAN Module Curses::UI"
arch=("any")
url="http://search.cpan.org/dist/Curses-UI/"
license=("GPL" "PerlArtistic")
makedepends=("perl-curses" "perl-term-readkey" "perl-test-pod")
depends=("ncurses" "perl-curses" "perl-term-readkey" "perl-test-pod")
source=("http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/Curses-UI-$pkgver.tar.gz"
	Curses-UI-0.9607.utf8fix.diff)
md5sums=('0dc4de85d94389b1d0eaaf36e804fc96'
         'bb5eb97de34c0f35969aed23e0ba7c53')

build() {
  cd $srcdir/Curses-UI-$pkgver
  patch -p1 <$srcdir/Curses-UI-0.9607.utf8fix.diff
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
